package stage_1_module_4.code.homework_5;

import java.io.Serializable;

public class Message implements Serializable {
    private String name;
    private int type;
    private String msg;
    /**
     *
     */
    private static final long serialVersionUID = 1L;

    public Message(int type, String msg, String name) {
        this.type = type;
        this.msg = msg;
        this.name = name;
    }


    public int getType() {
        return this.type;
    }

    public String getMsg() {
        return this.msg;
    }

    public String getName() {
        return this.name;
    }

    @Override
    public String toString()
    {
        return "[name:"+this.name+",type:"+this.type+",msg:"+this.msg+"]";
    }

}
